Mark Hammond reports that Cygwin termio handling is broken on the second
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 6 Jan 2004 23:42:35 +0000 (23:42 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 6 Jan 2004 23:42:35 +0000 (23:42 +0000)
open.  Revert to the WIN32 API for that case.

gpsbabel/jeeps/gpsserial.c
gpsbabel/magproto.c

index 6a8709a954933b4fc79b7db6d3e3d647f963f2a4..fbbfbcbad5ddeece5d542f227038b35ef186f904 100644 (file)
 #include <unistd.h>
 #include <time.h>
 
-
-#if __WIN32__
+/* 
+ * termio on Cygwin is apparently broken, so we revert to Windows serial.
+ */
+#if defined (__WIN32__) || defined (__CYGWIN__)
 
 #include <windows.h>
 /*
index e8d040ba664189e71c1be6fb8c676677817bfdca..b6d4288c87ee9595114596c9c822db615452974a 100644 (file)
@@ -472,7 +472,10 @@ retry:
                mag_writeack(isum);
 }
 
-#if __WIN32__
+/* 
+ * termio on Cygwin is apparently broken, so we revert to Windows serial.
+ */
+#if defined (__WIN32__) || defined (__CYGWIN__)
 
 #include <windows.h>